﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Data;
using JM.JCY.Proxy;
using JM.JCY.BusinessEntity.PPSM2007;

namespace JM.JCY.SharePointComponent.Layouts.SharePointComponent
{
    public partial class UserImage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            byte[] byteImageData = null;
            string UserName = Request.QueryString["UserName"].ToString();
            PPSM2007Proxy proxy = new PPSM2007Proxy();
            PPSMUserInfoDataSet.UserInfoDataTable dt = proxy.GetUserInfoByName(UserName);
            byteImageData = dt[0].Img;
            Response.BinaryWrite(byteImageData);

        }
    }
}
